package com.kinyx.examples.entities.impl;

import java.sql.Blob;
import java.sql.Clob;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Lob;

import org.hibernate.annotations.GenericGenerator;

import com.kinyx.framework.db.annotation.Comment;
import com.kinyx.framework.db.annotation.Order;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@Entity
@ToString
public class LobsEntity {

	@Id
	@GenericGenerator(name = "uuid", strategy = "uuid.hex")
	@GeneratedValue(generator = "uuid")
	@Column(nullable = false, updatable = false, length = 32)
	@Comment("主键")
	@Order(-10000)
	private String id;

	//	@Lob
	private Clob lob11;
	@Lob
	private char[] lob12;
	@Lob
	private String lob13;

	//	@Lob
	private Blob lob21;
	@Lob
	private byte[] lob22;

}
